package com.zygh.questionnairesurvey.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zygh.questionnairesurvey.entity.vo.UserInfoVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(value = "Problem对象", description = "")
public class Problem implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "问题描述")
    private String name;

    @ApiModelProperty(value = "问题编码")
    private String encoder;

    @ApiModelProperty(value = "上级id", example = "0")
    private Integer pid;

    @ApiModelProperty(value = "排序", example = "0")
    private Integer sort;

    @ApiModelProperty(value = "问题描述")
    private String described;

    @ApiModelProperty(value = "等级")
    private Integer rank;


    @ApiModelProperty(value = "警号")
    @TableField(exist = false)
    private String warningsignal;


    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(exist = false)
    private List<Problem> secondLevelList;

    @TableField(exist = false)
    private List<ProblemDetails> problemDetails;


    @TableField(exist = false)
    private UserInfoVO userInfo;


}